package com.smartStatus.admin.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smartStatus.api.entity.SysDict;
import com.smartStatus.core.util.R;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName : SysDictService
 * @Author : lby
 * @Date: 2020/12/16 14:39
 * @Description :
 */
public interface SysDictService extends IService<SysDict> {
    /**
     * 分页数据
     */
    IPage<SysDict> pageDicts(IPage<SysDict> page, QueryWrapper<SysDict> queryWrapper, @Param("sysDict") SysDict sysDict);

    /**
     * 添加字典
     */
    Boolean saveDict(SysDict sysDict);

    /**
     * 修改字典
     */
    Boolean editDict(SysDict sysDict);

    /**
     * 删除字典
     */
    Boolean delDict(SysDict sysDict);


    /**
     * 分页
     * @param page
     * @param sysDict
     * @return
     */
    R getDictPage(Page<SysDict> page, SysDict sysDict);
}
